﻿using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using FindIt.DAL;

namespace FindIt.BLL
{
    public class WaitingUser:User
    {
        public enum StatusType { waiting, rejected, approved};
        private StatusType _status;

        public StatusType Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public WaitingUser(string username, StatusType status)
        {
            base.Username = username;
            _status = status;
        }

        public void ApproveUser()
        {
        }

        public void Remove()
        {
        }

        public static void Register(string firstName, string lastName, string email, string username, string password)
        {
        }

        public static ArrayList GetOUList()
        {
            ArrayList list = new ArrayList();
            return list;
        }

        public void AddWUToDB()
        {
            UserDB db = new UserDB();
            db.AddWU(this);
        }
    }
}
